/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.framework.core;

import java.io.Serializable;

import com.cqcis.uip.base.framework.common.Attributes;

/**
 * 端点，表示一个注册服务
 * 
 * @author huangmy
 * @date   2008-1-11
 */
public interface Endpoint extends Attributes<String>, Serializable {
	/**
	 * 表达式类型
	 */
	public static String TYPE = "type"; // 类型
	public static String DIRECT_SRC = "ds"; // 源
	
	public static String LOCATION = "location"; 
	public static String TYPE_DEFAULT_VALUE = "*";
	
	public static long ACTIVE_ID = -1111;
	
	/**
	 * 端点ID
	 * @return
	 */
     public long getId();
     
     /**
      * 获取端点的表达式
      * @return
      */
     public String getURI();
     
     /**
      * 判断属性是否相同
      * @param endpoint
      * @return
      */
     public boolean atttibuesEqual(Endpoint endpoint);
     
     /**
      * 表达式
      * 
      * @return
      */
     public String getExpression();
}
